<nav class="nav-container">
  <div class="nav">
    <div class="logo">
      <a href="/index.html">
        <img src="https://lf3-cdn-tos.bytescm.com/obj/static/xitu_juejin_web/6bdafd801c878b10edb5fed5d00969e9.svg" alt="掘粪">
        <span>掘粪</span>
      </a>
    </div>
    <ul class="navbar">
      <li  class="navbar-item">
        <a href="/index.html">首页</a>
      </li>
      <li  class="navbar-item">
        <a href="#">粪点</a>
      </li>
      <li  class="navbar-item">
        <a href="/apidoc/index.html">APIdoc</a>
      </li>
    </ul>
    <div class="add-article">
      {if ($jf_user_info)}
      <a href="/index/editor.html" type="button" class="btn btn-primary">写文章</a>
      {/if}
    </div>
    <div class="user-avatar">
      {if ($jf_user_info)}
      <a href="#">
        <img src="https://sf3-ttcdn-tos.pstatp.com/img/user-avatar/cdd63e21708aea1c671aa32ae5837cbf~300x300.image" alt="...">
      </a>
      {else /}<button class="btn btn-warning" onclick="loginShow()">登陆</button>
      {/if}
    </div>
  </div>
</nav>